<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<input value="${ctx}" id="basePath" name="basePath" type="hidden" />
<%--index.jsp的操作--%>
<script type="text/javascript" src="${ctx}/resources/js/main.js"></script>
<script type="text/javascript" src="${ctx}/resources/js/project.js"></script>
<script>
    $(document).ready(function(){
        NProgress.done();
        $(".initial-mask").remove();

        var sidebar=true;
        $("#close-sidebar").on("click",function(){
            if(sidebar){
                $('.document-left').hide();
                $('.document-right').css("left","0");
                sidebar=false;
            }else{
                $('.document-left').show();
                $('.document-right').css("left","200px");
                sidebar=true;
            }

            $('#mainContent').tabs({
                width: $("#tt").parent().width(),
                height: "auto"
            });
        });

        $('.topback').click(function(){$('.document-content').animate({scrollTop: '0px'}, 400);});

        $(".notice-close").on("click",function(){
            $(this).parent().remove();
        });

        if (!window.applicationCache){
            $(".notice").css({display:"block"}).delay(500).animate({opacity:1},"2000");
        }


    });

    var _hmt = _hmt || [];
//    (function() {
//        var hm = document.createElement("script");
////        hm.src = "https://hm.baidu.com/hm.js?2b3f4e046085001a80d501ac63aded48";
//        var s = document.getElementsByTagName("script")[0];
//        s.parentNode.insertBefore(hm, s);
//    })();
    $(window).resize(function () {
        $('#mainContent').tabs({
            width: $("#tt").parent().width(),
            height: "auto"
        });
    })
</script>